import service from '@/utils/request.js'
// axios发送请求后,得到数据,promise.then方法,或者async
// 秒杀
export const HomeSeckillApi = (data) => {
    return service({
        method: 'POST',
        url: '/visual/seckill',
        // data: data
        data
    })
};
// list列表
export const HomeListApi = (params) => {
    return service({
        method: 'GET',
        url: '/goods/type_list',
        params
    })
};
// 首页分类的接口
export const HomeCategoryApi = (params) => {
    return service({
        method: 'GET',
        url: '/visual/visual_second_category',
        params
    })
};
// 首页分类的列表数据
export const HomeCategoryListApi = (data) => {
    return service({
        method: 'POST',
        url: '/catalog/goodslist',
        data
    })
};